package com.example.classcommunity3.dao;

import com.example.classcommunity3.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserDao extends JpaRepository<User, Long> {

    User findByUAccount(Long account);

    User findTopByUAccount(Long account);

    User findByUAccountAndUPassword(Long account, String uPassword);

}
